package nc.impl.medpub.pub.upgrade;

import javax.naming.NamingException;

import nc.bs.framework.common.NCLocator;
import nc.bs.sm.accountmanage.AbstractUpdateAccount;
import nc.itf.uap.busibean.ISysInitUpdate;

public class InitUpgrade extends AbstractUpdateAccount {

	public InitUpgrade() throws NamingException {
		super();
	}

	public void doAfterUpdateData(String oldVersion, String newVersion)
			throws Exception {
		((ISysInitUpdate) NCLocator.getInstance().lookup(
				ISysInitUpdate.class.getName())).insertAllDataFromSysinittemp();
	}

	public void doBeforeUpdateData(String oldVersion, String newVersion)
			throws Exception {

	}

	public void doBeforeUpdateDB(String oldVersion, String newVersion)
			throws Exception {

	}

}
